import Vue from 'vue'
import App from './App.vue'
import router from './router'
import imgs from '@/assets/image'
import {
  Tabbar, 
  TabbarItem,
  NoticeBar,
  Search,
  Swipe,
  SwipeItem ,
  Lazyload,
  PullRefresh,
  List,
  Sidebar,
  SidebarItem,
  Icon,
  Grid,
  GridItem,
  NavBar,
  SubmitBar,
  Checkbox,
  GoodsAction, 
  GoodsActionIcon, 
  GoodsActionButton,
  SwipeCell,  
  Card,
  Button,
  Form,
  Col,
  Row,
  Field,
  Dialog ,
  Cell ,
  CellGroup,
  AddressEdit,
  AddressList 
} from 'vant'
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NoticeBar)
Vue.use(Search )
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Lazyload )
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Sidebar)
Vue.use(SidebarItem)
Vue.use(Icon)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(NavBar)
Vue.use(SubmitBar)
Vue.use(Checkbox)
Vue.use(GoodsAction)
Vue.use(GoodsActionIcon)
Vue.use(GoodsActionButton)
Vue.use(SwipeCell)
Vue.use(Card)
Vue.use(Button)
Vue.use(Row)
Vue.use(Col)
Vue.use(Form)
Vue.use(Field )
Vue.use(Dialog)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(AddressEdit)
Vue.use(AddressList )

Vue.config.productionTip = false

Vue.prototype.$img = imgs

import api from '@/request'
import store from '@/store'
import utils from '@/utils'

Vue.prototype.$api = api;
Vue.prototype.$utils = utils;

Vue.filter('handPrice',function(val) {
  val *= 1000000
  return '￥' + (val.toFixed(2) / 1000000)
})
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
